package com.xyh;

import feign.Feign;
import feign.gson.GsonDecoder;

public class PersonMain {
    public static  void main(String[] args){
        HelloClient client= Feign.builder().decoder(new GsonDecoder()).target(HelloClient.class,"http://localhost:8080");
       Person person =client.getPerson(1);
       System.out.println(person.getId());
        System.out.println(person.getAge());
        System.out.println(person.getName());
    }

}
